package com.oracle.Util;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class ProjectExceptionAdvice {
    // 异常类拦截器
    @ExceptionHandler(Exception.class)
    public ResultData doOtherException(Exception ex){
        ex.printStackTrace();
        ResultData rd = new ResultData(false,null,"系统错误，请稍后重试！");
        return rd;
    }
}
